From 2979aea3ae674cbc1e318d1c884e86ededb17399 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sat, 18 May 2019 09:22:44 +0200 Subject: [PATCH] testsuite: Add a color matrix test case Color matrix nodes with an identity matrix and no offset should still produce the expected image. --- testsuite/gsk/compare/color-matrix-identity.node | 8 ++++++++ testsuite/gsk/compare/color-matrix-identity.png | Bin 0 -> 162 bytes testsuite/gsk/meson.build | 1 + 3 files changed, 9 insertions(+) create mode 100644 testsuite/gsk/compare/color-matrix-identity.node create mode 100644 testsuite/gsk/compare/color-matrix-identity.png diff --git a/testsuite/gsk/compare/color-matrix-identity.node b/testsuite/gsk/compare/color-matrix-identity.node new file mode 100644 index 0000000000..a81a474ad0 --- /dev/null +++ b/testsuite/gsk/compare/color-matrix-identity.node @@ -0,0 +1,8 @@ +color-matrix { + child: color { + bounds: 0 0 50 50; + color: rgba(255, 0, 0, 0.5); + } + matrix: none; + offset: 0 0 0 0; +} diff --git a/testsuite/gsk/compare/color-matrix-identity.png b/testsuite/gsk/compare/color-matrix-identity.png new file mode 100644 index 0000000000000000000000000000000000000000..f88dc6ac79dd429676eca7c10aa9b0e37bff66d5 GIT binary patch literal 162 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_=1|;R|J2nC-wj^(N7l!{JxM1({$v}~CPZ!6K zjK;U;8+jWP1P&aSe)49_bcKb6<-%LeTW@~Oe(h~TaL*Nqm4-pdOOAQ;PLxtMb;}|w aVApq;@v-G$?N>l67(8A5T-G@yGywodCOMJ- literal 0 HcmV?d00001 diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index 3150a2a59f..20851649b3 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -40,6 +40,7 @@ compare_render_tests = [ 'outset_shadow_simple', 'shadow-in-opacity', 'texture-url', + 'color-matrix-identity', ] renderers = [ -- 2.30.2